package com.appwoo.txtws.service;

import android.app.Service;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.os.Build.VERSION;
import android.os.IBinder;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;

public class ControlService extends Service
{
  PackageManager packageManager = null;
  View statusView = null;
  WindowManager winManager = null;

  public IBinder onBind(Intent paramIntent)
  {
    return null;
  }

  public void onCreate()
  {
    this.winManager = ((WindowManager)getSystemService("window"));
    this.statusView = ((LayoutInflater)getSystemService("layout_inflater")).inflate(2130903205, null);
    int i = 40;
    int j = 2003;
    if (Build.VERSION.SDK_INT >= 14)
      j = 2006;
    int k = Resources.getSystem().getIdentifier("status_bar_height", "dimen", "android");
    if ((k != 0) && (Resources.getSystem().getDimensionPixelSize(k) >= 0))
      i = Resources.getSystem().getDimensionPixelSize(k);
    WindowManager.LayoutParams localLayoutParams = new WindowManager.LayoutParams(-1, i, j, 296, -3);
    localLayoutParams.gravity = 51;
    this.statusView.setVisibility(0);
    this.winManager.addView(this.statusView, localLayoutParams);
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.service.ControlService
 * JD-Core Version:    0.6.2
 */